package fristphase.day02;

import java.util.Scanner;

public class 成绩等级判定 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入成绩");
        double score = scanner.nextDouble();
        if(100>=score && score>=90){
            System.out.println("A-优秀");
        }else if(score>=80){
            System.out.println("B-良好");
        }else if(score>=60){
            System.out.println("C-合格");
        }else {
            System.out.println("D-不及格");
        }
    }
}
